package com.ylkj.ylboss.freemark.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ylkj.common.entity.QuestionInfo;
import com.ylkj.member.service.QuestionInfoService;

@Controller
@RequestMapping("/answer")
public class AnswerInfoController {
	private static final Logger logger = LoggerFactory.getLogger(AnswerInfoController.class);
	@Autowired
	private QuestionInfoService questionInfoService;
  
	@RequestMapping("/index")  
  public ModelAndView getAnswerInfo(HttpServletRequest request, HttpServletResponse response) {  

  	List<QuestionInfo> QuestionInfoList = questionInfoService.queryQuestionInfoByPara(null);
//  	LawyerInfo lawyerInfo = new LawyerInfo();  
//  	lawyerInfo.setLawyerName("张三");
//  	lawyerInfo.setCertificateNo("13000000000");
//  	lawyerInfo.setPhoneNum("1234");
//      List<LawyerInfo> lawyerInfos = new ArrayList<LawyerInfo>();  
//      lawyerInfos.add(lawyerInfo);  
  	return new ModelAndView("questionInfo", "questionInfoList", QuestionInfoList); 
  }  
}
